<div class="" >

     <div id="filter">
        <form method="post" action="<?php echo $this->url(array('act' => 'filter'))?>" >
            <select name="category" id="category" >
            	<option value="-1" >Selecte Category</option>
                        <?php
                            foreach($this->categories as $category):
                                ?><option value="<?php echo $category->id;?>" ><?php echo $category->text;?></option><?php
                            endforeach;
                        ?>
                    </select>
            <input type="text" value="" placeholder="Name" name="name" id="name" />
            <input type="submit" value="Find" />
        </form>
     </div>
     
     
     
    <div class="items" >
        <span id="addBtn">Add Category</span>
        
        <div class="ui-widget">
          <h3>Existing Categories:</h3>
          <table class="ui-widget ui-widget-content">
            <thead>
              <tr class="ui-widget-header ">
                <th>Name</th>
                <th>Desciption</th>
                <th>&nbsp;</th>
                <th>&nbsp;</th>
              </tr>
            </thead>
            <tbody>
                <?php
                    foreach($this->categories as $categorie):
                        ?><tr data-id="<?php echo $categorie->id;?>"><?php
                            ?><td><?php echo $categorie->text?></td><?php
                            ?><td><?php echo $categorie->description?></td><?php
                            ?><td><span class="update-btn" >Update</span></td><?php
                            ?><td><span class="del-btn" >Delete</span></td><?php                                                                   
                        ?></tr><?php          
                    endforeach;
                ?>
            </tbody>
          </table>
        </div>
    </div>
</div>
<?php 
/*

<div class="" >
    <div class="filter" >
        <h3>Filter</h3>
        <form method="post" action="<?php echo $this->url(array('act' => 'filter'))?>" >
            <fieldset>
                <legend class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" >Searcg Tests</legend>
                <div class="field" >
                    <label for="category" >Category :</label>
                    <select name="category" id="category" >
                        <option value="-1" >Selecte Category</option>
                        <?php
                            foreach($this->categories as $category):
                                ?><option value="<?php echo $category->id;?>" ><?php echo $category->text;?></option><?php
                            endforeach;
                        ?>
                    </select>
                </div>
                <div class="field" >
                    <label for="name" >Name :</label>
                    <input type="text" value="" placeholder="Name" name="name" id="name" class="text ui-widget-content ui-corner-all" />
                </div>
                <div class="submit" >
                    <input type="submit" value="Find" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" />
                </div>
            </fieldset>
        </form>
    </div>
    <div class="items" >
        <span id="addBtn" >Add Test</span>
        <div id="users-contain" class="ui-widget">
          <h3>Existing Categories:</h3>
          <table class="ui-widget ui-widget-content">
            <thead>
              <tr class="ui-widget-header ">
                <th>Name</th>
                <th>Instruction</th>
                <th>&nbsp;</th>
                <th>&nbsp;</th>
              </tr>
            </thead>
            <tbody>
                <?php
                    foreach($this->tests as $test):
                        ?><tr data-id="<?php echo $test->id;?>"><?php
                            ?><td><?php echo $test->text?></td><?php
                            ?><td><?php echo $categorie->instruction?></td><?php
                            ?><td><span class="update-btn" >Update</span></td><?php
                            ?><td><span class="del-btn" >Delete</span></td><?php                                                                   
                        ?></tr><?php          
                    endforeach;
                ?>
            </tbody>
          </table>
        </div>
    </div>
</div>
*/
?>